xen: add warning infrastructure
authorWei Liu <wei.liu2@citrix.com>
Thu, 23 Jun 2016 15:10:27 +0000 (16:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 Jun 2016 15:57:14 +0000 (16:57 +0100)
commitee3fd57acd903f1b302290a0a1019d3db95aa259
tree1edd15b9637f2fee512823e1cf0dc9f5f027bc94
parent9808c130f04ff331aca23beee262f3d83eb46e55
xen: add warning infrastructure

Use an array to keep track of warning text, provide a function to add
warning text to track.  Print warnings (if any) in console_endboot.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/Makefile
xen/common/warning.c [new file with mode: 0644]
xen/drivers/char/console.c
xen/include/xen/warning.h [new file with mode: 0644]